﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> --%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"/>
<link rel="shortcut icon" href="images/store.png" />
<!--图片log  -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link href="css/base.css" rel="stylesheet">
<link href="css/mine_new.css" rel="stylesheet">
<link href="css/toTop.css?v=0715" rel="stylesheet">
<link href="css/orderlist.css" rel="stylesheet">
<title>订单详情</title>
</head>
<body>
	<div class="by_w" id="by_w">
		<div class="m_pagetop" align="center">
			<span class="m_goback"
				onclick="document.location.href = 'javascript:history.go(-1)';"></span>
			<span class="m_title">订单详情</span>
		</div>
		<div class="m_wap" id="min_hdiv" align="center"
			style="min-height: 455px;">
			<div id="orderlists">
				<c:forEach items="${orderList}" var="order">
					<div class="list_o ofh" oid="${order.sid}"
						isModify="${order.isModify}" isPay="${order.isPay}"
						isDeliver="${order.isDeliver}" erpdjh="${order.erpdjh}" paykind="${order.paykind}"
						supplierid="130051">
						<div class="list_o_title" align="left">
							<span>单号：${order.sid}</span> <span style="padding-left: 14px">日期：${order.FDate}</span>
							<span class="f_r" style="color: #F85252"></span>
						</div>
						<c:forEach items="${order.ordermx}" var="mx">
							<div class="o_tab ofh touri_s order_item_bd">
							<input type="hidden" class="minnum" value="${mx.zhongbz}">
							<input type="hidden" class="jlgg" value="${mx.jlgg}">
							<input type="hidden" class="spid" value="${mx.spid}">
							<input type="hidden" class="priceChl" value="${mx.priceChl}">
							<input type="hidden" class="priceZhj" value="${mx.priceZhj}">
							<%-- <input type="hidden" class="sjid" value="${mx.sjid}">
							<input type="hidden" class="pihao" value="${mx.pihao}"> --%>
								<!--根据商品id，改变商品详情的url  -->
								<c:set value="Shop/Detail" var="detail"></c:set>
								<c:set value="${fn:substring(mx.spid,3,4)}" var="idn"></c:set>
								<c:if test="${idn=='Z'}">
									<c:set value="NonDrug/Detail" var="detail"></c:set>
								</c:if>
								<a class="p_link" href="${detail}?productid=${mx.spid}&sjid=${sjid}"> 
									<img src="http://www.hnhcyy.com/resource/img/${mx.spid}/10.jpg" />
								</a>
								<div class="order_item_type">
									<div>商品名称：${mx.spmch}</div>
									<div>商品编号：${mx.spid}</div>
									<div>
										商品价格：￥<span class="col_333 price">${mx.FPrice}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										零售价：￥<span class="col_333" >${mx.lingshoujia}</span>
									</div>
									<div>
										购买数量：<span class="col_f85">${mx.FQty}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									</div>
								</div>
							</div>
						</c:forEach>
						<div class="logdetail">
							<div class="log">
								<span class="detail">查看配货详情</span>
							</div>
						</div>
						<div class="order_item_sbtn">
							<div>
								共 <span class="spnums">${order.ordermx.size()}</span>件商品&nbsp;&nbsp; 
								总金额：￥<span class="totalprice">${order.FAmount}</span>
							</div>
							<div class="pay">
								<%-- <input type="button" class="m_sub_f60 f_r" value=""
									oid="${order.sid}"> --%>
							</div>
						</div>
						<!--<div class="order_item_sbtn" style="height:50px">
                        <div style="padding-top:15px;font-size:14px;text-align:left;color:#B768A5">@item.orderhead.orderstatusname</div>
                    </div>
                    <div class="order_item_sbtn" style="height:50px">
                        <div style="padding-top:15px;font-size:14px;text-align:left;color:#B768A5">@item.orderhead.orderstatusname 快递单号：@item.orderhead.expressno </div>
                    </div>-->
					</div>
				</c:forEach>
			</div>
			<!-- <div align="center" class="m_maddmore none">
				<span>加载更多...</span>
			</div> -->
		</div>
	</div>
	<!--返回顶部  -->
	<div class="return top" style="bottom:52px;right:84%">
	   	<a href="javascript:;"><img src="//s.juancdn.com/jpwebapp_v1/images_v1/icon/back-top.png?ts=43cd703b21136a3e_1480432233" ></a>
	</div>
	<div><jsp:include page="part/foot.jsp"></jsp:include></div>

	<div class="footer_container">
		<div id="bottom_rights">
			<p>&copy;湖南恒昌医药有限公司</p>
		</div>
	</div>
<script>
var sjid=${sjid};
</script>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery-html5Validate.js"></script>
<script src="js/global.js?v=0715"></script>	
<script src="js/orderlist.js?v=0512"></script>
<script src="js/modify_order.js?v=0411"></script>
</body>
</html>